<center><h1>Cours <i class="fa fa-cogs fa-lg"></i></h1></center>

<hr>

<h3 style="font-family: 'Nixie One'; font-weight: bold; color: rgba(255, 207, 31, 1); font-size: 32px">Derniers cours : </h3>

<hr>

<table class="large-12 medium-12 columns">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Aperçu</th>
			<th>Catégorie</th>
			<th>Classe</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($cours as $c): ?>
		
			<tr>
				<td><h5><a href="<?php WEBROOT ?>view/<?= $c->id ?>"><?= $c->titre; ?></a></h5></td>
				<td><?= substr($c->contenu, 0, 80); ?> ...</td>
				<td><?= $c->categorie; ?></td>
				<td><?= $c->classe; ?></td>
			</tr>
		
		<?php endforeach; ?>
	</tbody>
</table>

<hr>

<h3 style="font-family: 'Nixie One'; font-weight: bold; color: rgba(255, 207, 31, 1); font-size: 32px">Catégories : </h3>

<hr>

<div class="row">
<?php foreach ($categories as $cat): ?>
	
		<div class="large-2 medium-2 columns">
			<center style="margin: 5px; padding: 5px; background: rgba(255, 255, 255, 0.5); border: 1px solid black; border-radius: 5px;">
				<a href="<?= WEBROOT ?>cours/categorie/<?= $cat->codeCat ?>"><?= $cat->libelle; ?> <br>
				<img src="<?= WEBROOT ?>img/categories/<?= $cat->image ?>" width="50px"></a>
			</center>
		</div>
	
<?php endforeach; ?>
</div>

<hr>

<h3 style="font-family: 'Nixie One'; font-weight: bold; color: rgba(255, 207, 31, 1); font-size: 32px">Classes : </h3>

<hr>

<div class="row">
	<?php foreach ($classes as $c): ?>
		
			<div class="large-6 medium-6 columns">
				<center><a href=""><?= $c->libelle; ?></a></center>
			</div>
		
	<?php endforeach; ?>
</div>